﻿using Commons.Enums;
using DomainCommons.Models;
using EntityModels.E02.Identities;
using EntityModels.E03.Photographs;

namespace EntityModels.E05.Reports
{
    public class Report:BaseEntity<int>
    {
        public int ReportTypeId { get; set; }
        public ReportType ReportType { get; set; }
        /// <summary>
        /// 被举报人
        /// </summary>
        //public AppUser AppUser { get; set; }
        /// <summary>
        /// 举报人
        /// </summary>
        public AppUser Reporter { get; set; }
        public Guid ReporterId { get; set; }
        public Photograph Photograph { get; set; }
        public Guid PhotographId { get; set; }
        public ReportStatusEnum Status { get; set; }
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 证据图片
        /// </summary>
        public string? Files { get; set; }
        public void Examine(ReportStatusEnum status)
        {
            Status = status;
            UpdateTime = DateTime.Now;
        }
    }
}
